<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>主页</title>
</head>
<body>
MAIN

${name}
${roleid }
<br/>

<ul id="menu">
<li>菜单</li>
</ul>

<script src="./js/jquery-3.3.1.js"></script>

<script type="text/javascript">
$(document).ready(function(){
	
	$.get("loadMenu",{},function(list){
		//

		
		var menuList=$.parseJSON(list);
		for(var i=0;i<menuList.list.length;i++){
			var str="<li><a href='"+menuList.list[i].menuPath;
				str+="' >";
				str+=menuList.list[i].menu+"</a></li>"
				$("#menu").append(str);
		}
		
	});
	
	
});


</script>
</body>
</html>